package test.domain.environment.file;

import java.util.Properties;

import test.domain.environment.Environment;

public class OutFile implements Environment<OutFile> {
	private String path;
	private String name;
	private String ext;
	private int maxFileRow;
	
	public OutFile initialize(Properties prop) {
		this.path = prop.getProperty("openfire.writer.filepath", "D:\\");
		this.name = prop.getProperty("openfire.writer.filename", "user");
		this.ext = prop.getProperty("openfire.writer.fileext", ".xml");
		this.maxFileRow = Integer.parseInt(prop.getProperty("openfire.writer.filerows", "10"));
		
		return this;
	}

	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getExt() {
		return ext;
	}
	public void setExt(String ext) {
		this.ext = ext;
	}
	public int getMaxFileRow() {
		return maxFileRow;
	}
	public void setMaxFileRow(int maxFileRow) {
		this.maxFileRow = maxFileRow;
	}	
}
